Class symantec.itools.awt.util.ToolBarSpacer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.awt.util.ToolBarSpacer

Object
   |
   +----Component
           |
           +----Canvas
                   |
                   +----symantec.itools.awt.util.ToolBarSpacer

public class ToolBarSpacer
extends Canvas
ToolBarPanelSpacer component. This component is used to space items in a ToolBarPanel.

Version:
1.1, July 24, 1997
Author:
Symantec
See Also:
ToolBarPanel

Variable Index

 o errors
Error strings.
 o space
The size of the space the spacer will occupy in pixels..

Constructor Index

 o symantec.itools.awt.util.ToolBarSpacer()
Create a ToolBarSpacer.

Method Index

 o addNotify()
Tells this component that it has been added to a container.
 o addPropertyChangeListener(PropertyChangeListener)
Adds a listener for all event changes.
 o addSpaceListener(PropertyChangeListener)
Adds a listener for Space changes.
 o addSpaceListener(VetoableChangeListener)
Adds a vetoable listener for Space changes.
 o addVetoableChangeListener(VetoableChangeListener)
Adds a vetoable listener for all event changes.
 o getMinimumSize()
Returns the minimum dimensions to properly display this component.
 o getPreferredSize()
Returns the recommended dimensions to properly display this component.
 o getSpace()
Gets the size of the space the spacer will occupy in pixels.
 o isValidSpace(int)
Is the specified space size valid?
 o minimumSize()
 o preferredSize()
 o removeNotify()
Tells this component that it is being removed from a container.
 o removePropertyChangeListener(PropertyChangeListener)
Removes a listener for all event changes.
 o removeSpaceListener(PropertyChangeListener)
Removes a listener for Space changes.
 o removeSpaceListener(VetoableChangeListener)
Removes a vetoable listener for Space changes.
 o removeVetoableChangeListener(VetoableChangeListener)
Removes a vetoable listener for all event changes.
 o setSpace(int)
Sets the size of the space the spacer will occupy in pixels.

Variables

 o errors
protected transient java.util.ResourceBundle errors
Error strings.

 o space
protected int space
The size of the space the spacer will occupy in pixels..

Constructors

 o ToolBarSpacer
public ToolBarSpacer()
Create a ToolBarSpacer. It's default space value is 10 pixels.

Methods

 o addNotify
public synchronized void addNotify()
Tells this component that it has been added to a container. This is a standard Java AWT method which gets called by the AWT when this component is added to a container. Typically, it is used to create this component's peer. It has been overridden here to hook-up event listeners.

Overrides:
addNotify in class Canvas
See Also:
removeNotify
 o addPropertyChangeListener
public synchronized void addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener for all event changes.

Parameters:
listener - the listener to add.
See Also:
removePropertyChangeListener
 o addSpaceListener
public synchronized void addSpaceListener(PropertyChangeListener listener)
Adds a listener for Space changes.

Parameters:
listener - the listener to add.
See Also:
removeSpaceListener
 o addSpaceListener
public synchronized void addSpaceListener(VetoableChangeListener listener)
Adds a vetoable listener for Space changes.

Parameters:
listener - the listener to add.
See Also:
removeSpaceListener
 o addVetoableChangeListener
public synchronized void addVetoableChangeListener(VetoableChangeListener listener)
Adds a vetoable listener for all event changes.

Parameters:
listener - the listener to add.
See Also:
removeVetoableChangeListener
 o getMinimumSize
public synchronized java.awt.Dimension getMinimumSize()
Returns the minimum dimensions to properly display this component. This is a standard Java AWT method which gets called to determine the minimum size of this component. In this case the minimum size is the same as the preferred size.

Overrides:
getMinimumSize in class Component
See Also:
getPreferredSize
 o getPreferredSize
public synchronized java.awt.Dimension getPreferredSize()
Returns the recommended dimensions to properly display this component. This is a standard Java AWT method which gets called to determine the recommended size of this component.

Returns:
The width is the Space value and the height is the tallest component the ToolBarPanel, if the parent ToolBarPanel's Orientation is HORIZONTAL. The height is the Space value and the width is the widest component the ToolBarPanel, if the parent ToolBarPanel's Orientation is VERTICAL. NOTE: If the parent of this class is not an instance of ToolBarPanel, this will return 10,10.
Overrides:
getPreferredSize in class Component
See Also:
setSpace, getSpace, getMinimumSize
 o getSpace
public int getSpace()
Gets the size of the space the spacer will occupy in pixels.

Returns:
the size of the space in pixels
See Also:
setSpace
 o isValidSpace
public boolean isValidSpace(int spaceSize)
Is the specified space size valid?

Parameters:
spaceSize - the value to test
Returns:
true if the parameter is greater or equal to zero.
See Also:
setSpace, getSpace
 o minimumSize
public synchronized java.awt.Dimension minimumSize()
Note: minimumSize() is deprecated.

Overrides:
minimumSize in class Component
See Also:
getMinimumSize
 o preferredSize
public synchronized java.awt.Dimension preferredSize()
Note: preferredSize() is deprecated.

Overrides:
preferredSize in class Component
See Also:
getPreferredSize
 o removeNotify
public synchronized void removeNotify()
Tells this component that it is being removed from a container. This is a standard Java AWT method which gets called by the AWT when this component is removed from a container. Typically, it is used to destroy the peers of this component and all its subcomponents. It has been overridden here to unhook event listeners.

Overrides:
removeNotify in class Component
See Also:
addNotify
 o removePropertyChangeListener
public synchronized void removePropertyChangeListener(PropertyChangeListener listener)
Removes a listener for all event changes.

Parameters:
listener - the listener to remove.
See Also:
addPropertyChangeListener
 o removeSpaceListener
public synchronized void removeSpaceListener(PropertyChangeListener listener)
Removes a listener for Space changes.

Parameters:
listener - the listener to remove.
See Also:
addSpaceListener
 o removeSpaceListener
public synchronized void removeSpaceListener(VetoableChangeListener listener)
Removes a vetoable listener for Space changes.

Parameters:
listener - the listener to remove.
See Also:
addSpaceListener
 o removeVetoableChangeListener
public synchronized void removeVetoableChangeListener(VetoableChangeListener listener)
Removes a vetoable listener for all event changes.

Parameters:
listener - the listener to remove.
See Also:
addVetoableChangeListener
 o setSpace
public void setSpace(int value) throws PropertyVetoException
Sets the size of the space the spacer will occupy in pixels.

Parameters:
value - the size of the space in pixels
Throws: PropertyVetoException
if the specified property value is unacceptable
See Also:
getSpace

All Packages  Class Hierarchy  This Package  Previous  Next  Index